package net.yambal.air.LeafletMap.Utility
{
    public class ColorUtility
    {
        public function ColorUtility()
        {
        }
        
        public static function uint2hex(dec:uint):String {
            var digits:String = "0123456789ABCDEF";
            var hex:String = '';
            
            while (dec > 0) {
                
                var next:uint = dec & 0xF;
                dec >>= 4;
                hex = digits.charAt(next) + hex;
                
            }
            
            if (hex.length == 0) hex = '0'
            
            return hex;
        }
    }
}